home *** CD-ROM | disk | FTP | other *** search
/ Revista do CD-ROM 118 / cd-rom 118.iso / aplic / open / openofficeorg1.cab / sbasic.jar / text / sbasic / shared / 01030200.xhp < prev    next >
Encoding:
Extensible Markup Language  |  2005-02-14  |  7.6 KB  |  123 lines

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--***********************************************************************
  3.  *
  4.  *  The Contents of this file are made available subject to the terms of
  5.  *  either of the following licenses
  6.  *
  7.  *         - GNU Lesser General Public License Version 2.1
  8.  *         - Sun Industry Standards Source License Version 1.1
  9.  *
  10.  *  Sun Microsystems Inc., October, 2000
  11.  *
  12.  *  GNU Lesser General Public License Version 2.1
  13.  *  =============================================
  14.  *  Copyright 2000 by Sun Microsystems, Inc.
  15.  *  901 San Antonio Road, Palo Alto, CA 94303, USA
  16.  *
  17.  *  This library is free software; you can redistribute it and/or
  18.  *  modify it under the terms of the GNU Lesser General Public
  19.  *  License version 2.1, as published by the Free Software Foundation.
  20.  *
  21.  *  This library is distributed in the hope that it will be useful,
  22.  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
  23.  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  24.  *  Lesser General Public License for more details.
  25.  *
  26.  *  You should have received a copy of the GNU Lesser General Public
  27.  *  License along with this library; if not, write to the Free Software
  28.  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  29.  *  MA  02111-1307  USA
  30.  *
  31.  *
  32.  *  Sun Industry Standards Source License Version 1.1
  33.  *  =================================================
  34.  *  The contents of this file are subject to the Sun Industry Standards
  35.  *  Source License Version 1.1 (the "License"); You may not use this file
  36.  *  except in compliance with the License. You may obtain a copy of the
  37.  *  License at http://www.openoffice.org/license.html.
  38.  *
  39.  *  Software provided under this License is provided on an "AS IS" basis,
  40.  *  WITHOUT WARRUNTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING,
  41.  *  WITHOUT LIMITATION, WARRUNTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
  42.  *  MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
  43.  *  See the License for the specific provisions governing your rights and
  44.  *  obligations concerning the Software.
  45.  *
  46.  *  The Initial Developer of the Original Code is: Sun Microsystems, Inc..
  47.  *
  48.  *  Copyright: 2000 by Sun Microsystems, Inc.
  49.  *
  50.  *  All Rights Reserved.
  51.  *
  52.  *  Contributor(s): _______________________________________
  53.  *
  54.  *
  55.  ************************************************************************-->
  56.     
  57. <helpdocument version="1.0">
  58. <meta>
  59. <topic id="textsbasicshared01030200xml" indexer="include" status="PUBLISH">
  60. <title id="tit" xml-lang="en-US">The Basic Editor</title>
  61. <filename>/text/sbasic/shared/01030200.xhp</filename>
  62. </topic>
  63. <history>
  64. <created date="2003-10-31T00:00:00">Sun Microsystems, Inc.</created>
  65. <lastedited date="2004-10-19T12:42:53">converted from old format - fpe</lastedited>
  66. </history>
  67. </meta>
  68. <body>
  69. <section id="basiceditor">
  70. <bookmark xml-lang="en-US" branch="index" id="bm_id3148647"><bookmark_value>saving;Basic code</bookmark_value>
  71. <bookmark_value>Basic;loading and saving source code</bookmark_value>
  72. <bookmark_value>loading;Basic code</bookmark_value>
  73. <bookmark_value>Basic editor</bookmark_value>
  74. <bookmark_value>navigating;in Basic projects</bookmark_value>
  75. </bookmark>
  76. <paragraph role="heading" id="hd_id3147264" xml-lang="en-US" level="1" l10n="U" oldref="1"><link href="text/sbasic/shared/01030200.xhp" name="The Basic Editor">The Basic Editor</link></paragraph>
  77. </section>
  78. <paragraph role="paragraph" id="par_id3145069" xml-lang="en-US" l10n="U" oldref="3">The Basic Editor provides the standard editing functions you are familiar with when working in a text document. It supports the functions of the <emph>Edit</emph> menu (Cut, Delete, Paste), the ability to select text with the Shift key, as well as cursor positioning functions (for example, moving from word to word with <switchinline select="sys"><caseinline select="MAC">Option 
  79. </caseinline><defaultinline>Ctrl</defaultinline></switchinline> and the arrow keys).</paragraph>
  80. <paragraph role="paragraph" id="par_id3154686" xml-lang="en-US" l10n="U" oldref="31">Long lines can be split into several parts by inserting an underline character _ as the last character of a line. This connects the line with the following line to one logical line.</paragraph>
  81. <paragraph role="paragraph" id="par_id3151042" xml-lang="en-US" l10n="U" oldref="32">If you press the <emph>Run BASIC</emph> icon on the <emph>Macro</emph> bar, program execution starts at the first line of the Basic editor. The "Sub Main" does not take precedence on program execution.</paragraph>
  82. <paragraph role="heading" id="hd_id3125863" xml-lang="en-US" level="2" l10n="U" oldref="4">Navigating in a Project</paragraph>
  83. <paragraph role="heading" id="hd_id3145785" xml-lang="en-US" level="3" l10n="U" oldref="6">The Library List</paragraph>
  84. <paragraph role="paragraph" id="par_id3146120" xml-lang="en-US" l10n="U" oldref="7">Select a library from the <emph>Library</emph> list at the left of the toolbar to load the library in the editor. The first module of the selected library will be displayed.</paragraph>
  85. <paragraph role="heading" id="hd_id3153190" xml-lang="en-US" level="3" l10n="U" oldref="8">The Object Catalog</paragraph>
  86. <embed href="text/sbasic/shared/01020200.xhp#object_catalog"/>
  87. <paragraph role="heading" id="hd_id3148647" xml-lang="en-US" level="2" l10n="U" oldref="15">Saving and Loading Basic Source Code</paragraph>
  88. <paragraph role="paragraph" id="par_id3154320" xml-lang="en-US" l10n="U" oldref="16">You can save Basic code in a text file for saving and importing in other programming systems.</paragraph>
  89. <paragraph role="warning" id="par_id3149959" xml-lang="en-US" l10n="U" oldref="25">You cannot save Basic dialogs to a text file.</paragraph>
  90. <paragraph role="heading" id="hd_id3149403" xml-lang="en-US" level="3" l10n="U" oldref="17">Saving Source Code to a Text File</paragraph>
  91. <list type="ordered">
  92. <listitem>
  93. <paragraph role="listitem" id="par_id3150327" xml-lang="en-US" l10n="U" oldref="18">Select the module that you want to export as text from the object catalog.</paragraph>
  94. </listitem>
  95. <listitem>
  96. <paragraph role="listitem" id="par_id3150752" xml-lang="en-US" l10n="U" oldref="19">Click the <emph>Save Source As</emph> icon in the Macro toolbar.</paragraph>
  97. </listitem>
  98. <listitem>
  99. <paragraph role="listitem" id="par_id3154754" xml-lang="en-US" l10n="U" oldref="20">Select a file name and click <emph>OK</emph> to save the file.</paragraph>
  100. </listitem>
  101. </list>
  102. <paragraph role="heading" id="hd_id3159264" xml-lang="en-US" level="3" l10n="U" oldref="21">Loading Source Code From a Text File</paragraph>
  103. <list type="ordered">
  104. <listitem>
  105. <paragraph role="listitem" id="par_id3147343" xml-lang="en-US" l10n="U" oldref="22">Select the module where you want to import the source code from the object catalog.</paragraph>
  106. </listitem>
  107. <listitem>
  108. <paragraph role="listitem" id="par_id3145230" xml-lang="en-US" l10n="U" oldref="23">Position the cursor where you want to insert the program code.</paragraph>
  109. </listitem>
  110. <listitem>
  111. <paragraph role="listitem" id="par_id3149565" xml-lang="en-US" l10n="U" oldref="24">Click the <emph>Insert Source Text</emph> icon in the Macro toolbar.</paragraph>
  112. </listitem>
  113. <listitem>
  114. <paragraph role="listitem" id="par_id3154020" xml-lang="en-US" l10n="U" oldref="33">Select the text file containing the source code and click <emph>OK</emph>.</paragraph>
  115. </listitem>
  116. </list>
  117. <section id="relatedtopics">
  118. <paragraph role="paragraph" id="par_id3153198" xml-lang="en-US" l10n="U" oldref="29"><link href="text/sbasic/shared/01050000.xhp" name="Basic IDE">Basic IDE</link></paragraph>
  119. <embed href="text/sbasic/shared/01020200.xhp#01020200"/>
  120. </section>
  121. </body>
  122. </helpdocument>
  123.